package com.ctgu.fcftsystem.dao;

import com.ctgu.fcftsystem.pojo.Sercurity_trade;
import com.ctgu.fcftsystem.pojo.Sharesholder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface Sercurity_tradeDao {


    /*分页查询*/
    List<Sercurity_trade> findByPaging(int pageCount, int pageSize);

    /**
     * 添加证券交易信息
     * @param sercurity_trade
     * @return
     */
    int addSercurity_tradeInformation(@Param("std")Sercurity_trade sercurity_trade);

    /**
     * 根据记录人、股票的交易类型、时间等多重条件进行搜索
     * @param sercurity_trade
     * @return
     */
    List<Sercurity_trade> searchsercurity_tradelist(@Param("ste") Sercurity_trade sercurity_trade);

    /**
     * 根据tradeId删除证券交易信息
     * @param tradeId
     * @return
     */
    int deleteSercurity_tradeInformation(@Param("tradeId") Integer tradeId);

    /**
     * 维护证券交易信息
     * @param sercurity_trade
     * @return
     */
    int updateSercurity_tradeInformation(@Param("sta") Sercurity_trade sercurity_trade);
}
